Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changed I2C default channel to explicit channel 1 #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jlinkohr
Copy link

according to https://forum.micropython.org/viewtopic.php?t=9940, there is a warning "Warning: I2C(-1, ...) is deprecated, use SoftI2C(...) instead". The change is only to use the dedicated first Bus.

according to https://forum.micropython.org/viewtopic.php?t=9940, there is a warning "Warning: I2C(-1, ...) is deprecated, use SoftI2C(...) instead". The change is only to use the dedicated first Bus.
@peterhinch
Copy link

A better solution is to change the API to pass an initialised I2C instance instead of pin numbers. This leaves the user free to use hard or soft I2C and also facilitates sharing the I2C bus with other devices.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants